package ${package.Entity};

import com.tsj.model.auto.model.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

<#if hasDate?? && hasDate>

</#if>

/**
 *
 * <p>
 * ${table.comment!''}
 * </p>
 *
 * @author ${author!''}
 * @version 1.0
 * @since ${date!''}
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("${table.name!''}")
@EqualsAndHashCode(callSuper = true)
public class ${entity!''} extends BaseEntity  {

<#-- 合并字段循环，同时处理主键和非主键 -->
<#list table.fields as field>
    <#-- 跳过不需要的字段 -->
    <#if field.name != "id" && field.name != "del_flag"
        && field.name != "time_create" && field.name != "time_modified"
        && field.name != "created_user_id" && field.name != "modified_user_id">
    /**
     *  ${field.comment!}
     */
    @TableField("${field.columnName!''}")
    private ${field.propertyType!''} ${field.propertyName!''};

    </#if>
</#list>

}
